import { Controller, Get } from '@nestjs/common';
import { ModelsService, ModelInfo } from './models.service';

@Controller('api/models')
export class ModelsController {
  constructor(private readonly modelsService: ModelsService) {}

  @Get()
  async getModels(): Promise<ModelInfo[]> {
    return this.modelsService.getModels();
  }
}

